<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>专业数据处理平台</title>
    <meta name="description" content="这是一个 clusterMonitoring 页面">
    <meta name="keywords" content="clusterMonitoring">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="${ctx}/assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="${ctx}/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="${ctx}/assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="${ctx}/assets/css/admin.css">
    <link rel="stylesheet" href="${ctx}/assets/css/app.css">
    <link rel="stylesheet" href="${ctx}/assets/css/layer.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/assets/css/xcConfirm.css"/>
    <style>
        .timeSpan{
            width: 83px;
            display: inline-block;
            font-size: 1.6rem;
        }
        tr.trFocrrus{
            background-color:#eee;
        }
        #prePage3 .am-pagination{
            margin-bottom: 0;
            margin-top: 6px;
        }
    </style>
</head>

<body data-type="chart">
        <!--标题-->
        <div class="tpl-content-page-title">
            工作流系统--监控
        </div>
        <!--面包屑-->
        <ol class="am-breadcrumb">
            <li><a href="#" class="am-icon-home">首页</a></li>
            <li><a href="#">监控</a></li>
            <li class="am-active">集群监控</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold">
                    集群监控
                </div>
                <div style="float: right;margin-right: 25px;">
<!--                     <div style="display: inline-block;width: 555px;"> -->
<!--                         <div class="am-u-sm-6"> -->
<!--                             <button type="button" class="am-btn am-btn-default am-margin-right" id="my-start">开始日期</button><span id="my-startDate"></span> -->
<!--                         </div> -->
<!--                         <div class="am-u-sm-6"> -->
<!--                             <button type="button" class="am-btn am-btn-default am-margin-right" id="my-end">结束日期</button><span id="my-endDate"></span> -->
<!--                         </div> -->
<!--                     </div> -->
                    <div style="display: inline-block;width: 47px;">
                        <div class="am-input-group" style="display: inline-block;">
                            <span class="am-input-group-btn">
                                <button class="am-btn am-btn-default" type="button" id="monitoringSearch"><span class="am-icon-search"></span></button>
                            </span>
                        </div>
                    </div>
                </div>
            </div>

            <input type="hidden" id="hardwareMonitoringIsSearch" value="0"/>
            <input type="hidden" id="hardwareMonitoringStartDateTemp" value=""/>
            <input type="hidden" id="hardwareMonitoringEndDateTemp" value=""/>
        		<div class="am-panel-group" id="hardwareMonitoring">
            	<div class="am-panel am-panel-default">
                    <div class="am-panel-hd">
                        <h4 class="am-panel-title" data-am-collapse="{parent: '#hardwareMonitoring', target: '#hm-content'}">
                            集群监控统计
                        </h4>
                    </div>
                    <div id="hm-content" class="am-panel-collapse am-collapse am-in">
                        <div class="am-panel-bd">
<!--                             <div style="text-align: right; border-bottom: 1px solid #ddd;"> -->
<!--                                 <div style="display: inline-block;width: 555px;"> -->
<!--                                     <div class="am-u-sm-6"> -->
<!--                                         <button type="button" class="am-btn am-btn-default am-margin-right" id="hardwareMonitoring-start">开始日期</button><span id="hardwareMonitoring-startDate" class="timeSpan"></span> -->
<!--                                     </div> -->
<!--                                     <div class="am-u-sm-6"> -->
<!--                                         <button type="button" class="am-btn am-btn-default am-margin-right" id="hardwareMonitoring-end">结束日期</button><span id="hardwareMonitoring-endDate" class="timeSpan"></span> -->
<!--                                     </div> -->
<!--                                 </div> -->
<!--                                 <div style="display: inline-block;width: 47px;"> -->
<!--                                     <div class="am-input-group"> -->
<!--                                                 <span class="am-input-group-btn"> -->
<!--                                                     <button class="am-btn am-btn-default" type="button" id="hardwareMonitoringSearch"><span class="am-icon-search"></span></button> -->
<!--                                                 </span> -->
<!--                                     </div> -->
<!--                                 </div> -->
<!--                             </div> -->
<!--                                                                 <div class="am-u-sm-12" style="height: 520px; float: none"> -->
<!--                                                                     <div class="am-u-sm-6" id="p_chart6" style="height: 100%; padding: 0;border: 1px solid #ddd;"> -->
<!--                                                                         <div id="chart6"></div> -->
<!--                                                                     </div> -->
<!--                                                                     <div class="am-u-sm-6" id="p_chart7" style="height: 100%; padding: 0;border: 1px solid #ddd;"> -->
<!--                                                                         <div id="chart7"></div> -->
<!--                                                                     </div> -->
<!--                                                                 </div> -->
                            <div class="am-u-sm-12" style="height: 520px; float: none">
                                <div class="am-u-sm-4" id="p_chart8" style="height: 100%; padding: 0;border: 1px solid #ddd;">
                                    <div id="chart8"></div>
                                </div>
                                <div class="am-u-sm-4" id="p_chart9" style="height: 100%; padding: 0;border: 1px solid #ddd;">
                                    <div id="chart9"></div>
                                </div>
                                <div class="am-u-sm-4" id="p_chart10" style="height: 100%; padding: 0;border: 1px solid #ddd;">
                                    <div id="chart10"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tpl-block">
                <!--栅格化-->
                <div class="am-g">
                    <input type="hidden" id="facilityMonitoringIsSearch" value="0"/>
                    <input type="hidden" id="facilityMonitoringStartDateTemp" value=""/>
                    <input type="hidden" id="facilityMonitoringEndDateTemp" value=""/>
                    <input type="hidden" id="facilityMonitoringSearchContentTemp" value=""/>
                    <div class="am-panel-group" id="facilityMonitoring">
                        <div class="am-panel am-panel-default">
                            <div class="am-panel-hd">
                                <h4 class="am-panel-title" data-am-collapse="{parent: '#facilityMonitoring', target: '#fl-content'}">
                                    集群基础设施监控
                                </h4>
                            </div>
                            <div id="fl-content" class="am-panel-collapse am-collapse">
                                <div class="am-panel-bd">
                                    <div style="text-align: right; border-bottom: 1px solid #ddd;">
<!--                                         <div style="display: inline-block;width: 555px;"> -->
<!--                                             <div class="am-u-sm-6"> -->
<!--                                                 <button type="button" class="am-btn am-btn-default am-margin-right" id="facilityMonitoring-start">开始日期</button><span id="facilityMonitoring-startDate" class="timeSpan"></span> -->
<!--                                             </div> -->
<!--                                             <div class="am-u-sm-6"> -->
<!--                                                 <button type="button" class="am-btn am-btn-default am-margin-right" id="facilityMonitoring-end">结束日期</button><span id="facilityMonitoring-endDate" class="timeSpan"></span> -->
<!--                                             </div> -->
<!--                                         </div> -->
                                        <div style="display: inline-block;width: 300px;">
                                            <div class="am-input-group">
                                                <span class="am-input-group-btn">
                                                    <input type="text" class="am-form-field" style="width: 251px" placeholder="  搜索内容..." id="facilityMonitoringSearchContent">
                                                    <button class="am-btn am-btn-default" type="button" id="facilityMonitoringSearch"><span class="am-icon-search"></span></button>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="am-u-sm-12" style="float: none;">
                                        <table class="am-table am-table-striped am-table-hover table-main" id="facilityMonitoringTableList">
                                            <thead>
                                            <tr>
                                                <th style="min-width: 50px;">序号</th>
                                                <th style="min-width: 80px;">集群节点名</th>
                                                <th style="min-width: 75px;">节点可用状态</th>
                                                <th style="min-width: 80px;">CPU总数</th>
                                                <th style="min-width: 80px;">作业占用CPU数</th>
                                                <th style="min-width: 80px;">CPU使用率</th>
                                                <th style="min-width: 80px;">空闲物理内存</th>
                                                <th style="min-width: 80px;">空闲交换区</th>
                                                <th style="min-width: 100px;">作业详情</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            </tbody>
                                        </table>
                                        <div class="am-cf am-center">
                                            <div id="prePage1" style="text-align: center;" am-pagination="pagination_1" pagenumber="1" totalpage="6"></div>
                                        </div>
                                        <hr>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <%--<input type="hidden" id="resourceMonitoringIsSearch" value="0"/>--%>
                    <%--<input type="hidden" id="resourceMonitoringStartDateTemp" value=""/>--%>
                    <%--<input type="hidden" id="resourceMonitoringEndDateTemp" value=""/>--%>
                    <%--<input type="hidden" id="resourceMonitoringSearchContentTemp" value=""/>--%>
                    <%--<div class="am-panel-group" id="resourceMonitoring">--%>
                        <%--<div class="am-panel am-panel-default">--%>
                            <%--<div class="am-panel-hd">--%>
                                <%--<h4 class="am-panel-title" data-am-collapse="{parent: '#resourceMonitoring', target: '#rm-content'}">--%>
                                    <%--集群异构硬件监控--%>
                                <%--</h4>--%>
                            <%--</div>--%>
                            <%--<div id="rm-content" class="am-panel-collapse am-collapse">--%>
                                <%--<div class="am-panel-bd">--%>
                                    <%--<div style="text-align: right; border-bottom: 1px solid #ddd;">--%>
                                        <%--<div style="display: inline-block;width: 555px;">--%>
                                            <%--<div class="am-u-sm-6">--%>
                                                <%--<button type="button" class="am-btn am-btn-default am-margin-right" id="resourceMonitoring-start">开始日期</button><span id="resourceMonitoring-startDate" class="timeSpan"></span>--%>
                                            <%--</div>--%>
                                            <%--<div class="am-u-sm-6">--%>
                                                <%--<button type="button" class="am-btn am-btn-default am-margin-right" id="resourceMonitoring-end">结束日期</button><span id="resourceMonitoring-endDate" class="timeSpan"></span>--%>
                                            <%--</div>--%>
                                        <%--</div>--%>
                                        <%--<div style="display: inline-block;width: 300px;">--%>
                                            <%--<div class="am-input-group">--%>
                                                <%--<span class="am-input-group-btn">--%>
                                                    <%--<input type="text" class="am-form-field" style="width: 251px" placeholder="  搜索内容..." id="resourceMonitoringSearchContent">--%>
                                                    <%--<button class="am-btn am-btn-default" type="button" id="resourceMonitoringSearch"><span class="am-icon-search"></span></button>--%>
                                                <%--</span>--%>
                                            <%--</div>--%>
                                        <%--</div>--%>
                                    <%--</div>--%>
                                    <%--<div class="am-u-sm-12" style="float: none">--%>
                                        <%--<table class="am-table am-table-striped am-table-hover table-main" id="resourceMonitoringTableList">--%>
                                            <%--<thead>--%>
                                            <%--<tr>--%>
                                                <%--<th style="min-width: 50px;">序号</th>--%>
                                                <%--<th style="min-width: 80px;">硬件类型</th>--%>
                                                <%--<th style="min-width: 80px;">可用情况</th>--%>
                                                <%--<th style="min-width: 80px;">可用数量</th>--%>
                                                <%--<th style="min-width: 80px;">占用数量</th>--%>
                                            <%--</tr>--%>
                                            <%--</thead>--%>
                                            <%--<tbody>--%>
                                            <%--<tr>--%>
                                                <%--<td>1</td>--%>
                                                <%--<td>GPU硬件</td>--%>
                                                <%--<td>可用</td>--%>
                                                <%--<td>5</td>--%>
                                                <%--<td>3</td>--%>
                                            <%--</tr>--%>
                                            <%--</tbody>--%>
                                        <%--</table>--%>
                                        <%--<div class="am-cf am-center">--%>
                                            <%--<div id="prePage2" style="text-align: center;" am-pagination="pagination_2" pagenumber="1" totalpage="6"></div>--%>
                                        <%--</div>--%>
                                        <%--<hr>--%>
                                    <%--</div>--%>
                                <%--</div>--%>
                            <%--</div>--%>
                        <%--</div>--%>
                    <%--</div>--%>

                    <input type="hidden" id="monitoringStatisticsIsSearch" value="0"/>
                    <input type="hidden" id="monitoringStatisticsStartDateTemp" value=""/>
                    <input type="hidden" id="monitoringStatisticsEndDateTemp" value=""/>
                    <input type="hidden" id="monitoringStatisticsSearchContentTemp" value=""/>
                    <div class="am-panel-group" id="monitoringStatistics">
                        <div class="am-panel am-panel-default">
                            <div class="am-panel-hd">
                                <h4 class="am-panel-title" data-am-collapse="{parent: '#monitoringStatistics', target: '#ms-content'}">
                                    集群资源使用情况
                                </h4>
                            </div>
                            <div id="ms-content" class="am-panel-collapse am-collapse">
                                <div class="am-panel-bd">
                                    <div style="text-align: right; border-bottom: 1px solid #ddd;">
                                        <!--<div style="display: inline-block;width: 555px;">-->
                                        <!--<div class="am-u-sm-6">-->
                                        <!--<button type="button" class="am-btn am-btn-default am-margin-right" id="monitoringStatistics-start">开始日期</button><span id="monitoringStatistics-startDate" class="timeSpan"></span>-->
                                        <!--</div>-->
                                        <!--<div class="am-u-sm-6">-->
                                        <!--<button type="button" class="am-btn am-btn-default am-margin-right" id="monitoringStatistics-end">结束日期</button><span id="monitoringStatistics-endDate" class="timeSpan"></span>-->
                                        <!--</div>-->
                                        <!--</div>-->
                                        <div style="display: inline-block;width: 300px;">
                                            <div class="am-input-group">
                                                <span class="am-input-group-btn">
                                                    <input type="text" class="am-form-field" style="width: 251px" placeholder="  搜索内容..." id="monitoringStatisticsSearchContent">
                                                    <button class="am-btn am-btn-default" type="button" id="monitoringStatisticsSearch"><span class="am-icon-search"></span></button>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="am-u-sm-12" style="height: 520px; float: none; border-bottom: 1px solid #ddd;">
                                        <div class="am-u-sm-7" id="p_chart1" style="height: 100%; padding: 0">
                                            <div id="chart1"></div>
                                        </div>
                                        <div class="am-u-sm-5" style="padding-right: 0;">
                                            <div class="am-u-sm-12" style="float: none">
                                                <table class="am-table am-table-hover am-table-centered am-table-bordered" id="monitoringStatisticsTableList" style="margin-bottom: 0; margin-top: 16px; font-size: 1.4rem;">
                                                    <thead>
                                                    <tr>
                                                        <th style="min-width: 34px;"><input type="checkbox" id="checkAll" checked></th>
                                                        <th style="min-width: 80px;">机器节点</th>
                                                        <th style="min-width: 80px;">CPU使用率(%)</th>
                                                        <th style="min-width: 80px;">内存大小(M)</th>
                                                        <th style="min-width: 80px;">交换区大小(M)</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody id="monitoringStatisticsTbody">
                                                    </tbody>
                                                </table>
                                                <div class="am-cf am-center" nowrap>
                                                    <div id="prePage3" style="text-align: center; font-size: 12px" am-pagination="pagination_3" pagenumber="1" totalpage="8" paginationMaxLength="3"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="am-u-sm-12" style="height: 520px; float: none">
                                        <div class="am-u-sm-12" id="p_chart2" style="height: 100%; padding: 0">
                                            <div id="chart2"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <%--<input type="hidden" id="jobMonitoringIsSearch" value="0"/>--%>
                    <%--<input type="hidden" id="jobMonitoringStartDateTemp" value=""/>--%>
                    <%--<input type="hidden" id="jobMonitoringEndDateTemp" value=""/>--%>
                    <%--<input type="hidden" id="jobMonitoringSearchContentTemp" value=""/>--%>
                    <%--<div class="am-panel-group" id="jobMonitoring">--%>
                        <%--<div class="am-panel am-panel-default">--%>
                            <%--<div class="am-panel-hd">--%>
                                <%--<h4 class="am-panel-title" data-am-collapse="{parent: '#jobMonitoring', target: '#jm-content'}">--%>
                                    <%--作业运行时间分析--%>
                                <%--</h4>--%>
                            <%--</div>--%>
                            <%--<div id="jm-content" class="am-panel-collapse am-collapse">--%>
                                <%--<div class="am-panel-bd">--%>
                                    <%--<div style="text-align: right; border-bottom: 1px solid #ddd;">--%>
                                        <%--<div style="display: inline-block;width: 555px;">--%>
                                            <%--<div class="am-u-sm-6">--%>
                                                <%--<button type="button" class="am-btn am-btn-default am-margin-right" id="jobMonitoring-start">开始日期</button><span id="jobMonitoring-startDate" class="timeSpan"></span>--%>
                                            <%--</div>--%>
                                            <%--<div class="am-u-sm-6">--%>
                                                <%--<button type="button" class="am-btn am-btn-default am-margin-right" id="jobMonitoring-end">结束日期</button><span id="jobMonitoring-endDate" class="timeSpan"></span>--%>
                                            <%--</div>--%>
                                        <%--</div>--%>
                                        <%--<div style="display: inline-block;width: 197px;">--%>
                                            <%--<div class="am-input-group">--%>
                                                <%--<span class="am-input-group-btn">--%>
                                                    <%--<select class="am-form-field" style="width: 150px" id="jobMonitoringSearchContent">--%>
                                                        <%--<option value="" disabled selected>-请选择统计类型</option>--%>
                                                        <%--<option value="按软件统计">按软件统计</option>--%>
                                                        <%--<option value="按系统统计">按系统统计</option>--%>
                                                    <%--</select>--%>
                                                    <%--<button class="am-btn am-btn-default" type="button" id="jobMonitoringSearch"><span class="am-icon-search"></span></button>--%>
                                                <%--</span>--%>
                                            <%--</div>--%>
                                        <%--</div>--%>
                                    <%--</div>--%>
                                    <%--<div class="am-u-sm-12" style="height: 450px; float: none">--%>
                                        <%--<div class="am-u-sm-4" id="p_chart3" style="height: 100%; padding: 0;border: 1px solid #ddd;">--%>
                                            <%--<div id="chart3"></div>--%>
                                        <%--</div>--%>
                                        <%--<div class="am-u-sm-4" id="p_chart4" style="height: 100%; padding: 0;border: 1px solid #ddd;">--%>
                                            <%--<div id="chart4"></div>--%>
                                        <%--</div>--%>
                                        <%--<div class="am-u-sm-4" id="p_chart5" style="height: 100%; padding: 0;border: 1px solid #ddd;">--%>
                                            <%--<div id="chart5"></div>--%>
                                        <%--</div>--%>
                                    <%--</div>--%>
                                <%--</div>--%>
                            <%--</div>--%>
                        <%--</div>--%>
                    <%--</div>--%>

                </div>
            </div>
        </div>
<script src="${ctx}/assets/js/jQuery/jquery.min.js"></script>
<script src="${ctx}/assets/js/jQuery/jquery-1.9.1.js"></script>
<script src="${ctx}/assets/js/common/amazeui.min.js"></script>
<script src="${ctx}/assets/js/common/echarts.min.js"></script>
<script src="${ctx}/assets/js/common/xcConfirm.js"></script>
<script src="${ctx}/assets/js/common/macarons.js"></script>
<script src="${ctx}/assets/js/common/vintage.js"></script>
<script src="${ctx}/assets/js/common/config.js"></script>
<script src="${ctx}/assets/js/common/app.js"></script>
<script src="${ctx}/assets/js/layer/layer.js"></script>
<script src="${ctx}/assets/js/clusterMoniting/clusterTable2.js"></script>
<script src="${ctx}/assets/js/clusterMoniting/clusterFacilityMonitoring.js"></script>
<script src="${ctx}/assets/js/clusterMoniting/clusterHardwareMoniting.js"></script>
<script src="${ctx}/assets/js/clusterMoniting/clusterJobMonitoring.js"></script>
<script src="${ctx}/assets/js/clusterMoniting/clusterMonitoringStatistics.js"></script>
<script src="${ctx}/assets/js/clusterMoniting/clusterResourceMonitoring.js"></script>
</body>

</html>